using NodeCanvas.Framework;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    public class CheckTargetIsBombFly : AIConditionBaseNode
    {
        public BBParameter<TargetType> targetType = TargetType.Self;

        protected override bool OnCheck()
        {
            AIEntity target = _entity.battleAgent.GetTarget(targetType.value);
            if (target)
            {
                return target.data.isBombFly;
            }
            return false;
        }
    }
}